# -*- coding: utf-8 -*-
# @Time    : 2022/1/11 9:47
# @Author  : 徐翊宸
# @Email   : xyc@163.com
# @File    : page_gzdt.py
# @Software: PyCharm
from selenium.webdriver.common.by import By

from pages.base_page import BasePage


class GzdtPage(BasePage):

    ss_name_locator = (By.NAME, "search")
    cx_submit_locator = (By.ID, "searchBtn")


    def __int__(self, driver):
        self.driver = driver

    def ss_name_input(self, ss_name):
        self.driver.find_element(*self.ss_name_locator).send_keys(ss_name)

    def cx_submit_click(self):
        self.driver.find_element(*self.cx_submit_locator).click()